﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Digitalmes.Configuration
{
    /// <summary>
    /// 远端服务配置
    /// </summary>
    public sealed class RemoteConfig
    {
        /// <summary>
        /// 是否允许推送数据到远端服务
        /// </summary>
        public bool AllowedPushToRemote { get; set; }

        /// <summary>
        /// 是否校验条码
        /// </summary>
        public bool ValidateBarcode { get; set; }

        /// <summary>
        /// 批次料/单件校验接口地址
        /// </summary>
        public string? BarcodeCheckUrl { get; set; }

        /// <summary>
        /// 是否校验批次码数量
        /// </summary>
        public bool ValidateBatchQty { get; set; }

        /// <summary>
        /// 是否在校验批次码数量允许记录不存在，一般用于测试
        /// </summary>
        public bool AllowNotRecordWhenValidateBatchQty { get; set; }

        /// <summary>
        /// 是否批次码与工单绑定
        /// </summary>
        public bool BatchBindWorkOrder { get; set; }
    }

}
